package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class MmallRegion extends Model<MmallRegion> {

private static final long serialVersionUID = 1L;

                    @TableId(value = "id", type = IdType.AUTO)
                private Integer id;
        private Integer parentId;
        private String name;
        private Integer type;
        private Integer agencyId;


    public Integer getId() {
            return id;
            }

        public void setId(Integer id) {
            this.id = id;
            }

    public Integer getParentId() {
            return parentId;
            }

        public void setParentId(Integer parentId) {
            this.parentId = parentId;
            }

    public String getName() {
            return name;
            }

        public void setName(String name) {
            this.name = name;
            }

    public Integer getType() {
            return type;
            }

        public void setType(Integer type) {
            this.type = type;
            }

    public Integer getAgencyId() {
            return agencyId;
            }

        public void setAgencyId(Integer agencyId) {
            this.agencyId = agencyId;
            }

@Override
protected Serializable pkVal() {
            return this.id;
        }

@Override
public String toString() {
        return "MmallRegion{" +
                ", id=" + id +
                ", parentId=" + parentId +
                ", name=" + name +
                ", type=" + type +
                ", agencyId=" + agencyId +
        "}";
        }
        }
